const http = uni.$u.http
const prefix = '/no-auth/wechat'
export default {
	// 获取微信openid
	WXopenid: (params) => http.post(`${prefix}/wx-openid`, params, {
		params
	}),

	// 获取微信WXAccessToken
	WXAccessToken: (params) => http.post(`${prefix}/wx-access-token`, params, {
		params
	}),
	
	// 获取微信绑定的手机号
	WXPhone: (params) => http.post(`${prefix}/wx-phone`, params, {
		params
	}),
	
	// 获取微信支付的凭证
	WXUserPayment: (params) => http.post(`/user/wechat/user/payment`, params),
	
	// 解密微信的用户信息
	DecryptUserInfo: (params) => http.post(`/user/wechat/decrypt/user-info`, params),
	
	
	// 向用户发起微信公众号通知
	TemplatePush: (params) => http.post(`/user/wechat/user/template/push`, params)
}
